package com.carkepper.appraisal.service;

import com.carkeeper.entity.PageResult;
import com.carkeeper.entity.Result;
import com.carkepper.appraisal.dao.AppraisalMongoDao;


/**
 * 服务评价的mongo的service的接口
 */
public interface AppraisalMongoService {
    /**
     * 增加评论
     *
     * @param
     * @return
     */
    public Result<AppraisalMongoDao> saveObj(AppraisalMongoDao mongoDao, String fileFull);

    /**
     * 查询所有
     *
     * @return
     */
    public Result<AppraisalMongoDao> findAll();

    /***
     * 根据id查询
     * @param id
     * @return
     */
    public Result<AppraisalMongoDao> getAppraiseById(Integer id);


    /***
     * 删除对象
     * @param
     * @return
     */
    public Result<AppraisalMongoDao> deleteAppraisalMongoDao(AppraisalMongoDao mongoDao);

    /**
     * 根据id删除
     *
     * @param id
     * @return
     */
    public Result<AppraisalMongoDao> deleteAppraiseBy(Integer id);
    /**
     * 分页查询
     * @param pageIndex
     * @param pageSize
     * @return
     */
    public PageResult<AppraisalMongoDao> pageQuery(int pageIndex, int pageSize);


    /**
     * 多条件查询加分页
     * @param orderId
     * @param customorName
     * @param orderCreateTime
     * @param storeSimpleName
     * @param pageIndex
     * @param pageSize
     * @return
     */
    public PageResult<AppraisalMongoDao> getAppraisalMongoDaoByQuery(String orderId, String customorName,
                                                                     String orderCreateTime, String storeSimpleName,
                                                                     String serviceKind,
                                                                     Integer pageIndex, Integer pageSize);

    public Result<AppraisalMongoDao> update(Integer Id);
    public Result<AppraisalMongoDao> updateBack(Integer Id);
}
